package com.example.recycler.ext

import com.example.recycler.app.App
import me.jessyan.autosize.utils.AutoSizeUtils

/**
 * Created by 舍长 on 2019/5/16
 * describe:
 */
//单位转换
fun dp2px(value: Float): Int {
    val result = AutoSizeUtils.dp2px(App.getContext(), value)
    return result
}

fun sp2px(value: Float): Int {
    val result = AutoSizeUtils.sp2px(App.getContext(), value)
    return result
}
